package com.sbtr.business.project.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.sbtr.business.project.entity.Project;
import com.sbtr.open.project.dto.ProjectDto;
import com.sbtr.open.project.dto.ProjectModelDto;
import com.sbtr.overview.dto.AllCountDto;
import com.sbtr.overview.dto.ProjectRateCountDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 图像识别项目表 Mapper 接口
 * </p>
 *

 */
public interface ProjectMapper extends BaseMapper<Project> {

	IPage<ProjectDto> customPage(IPage<ProjectDto> page, @Param(Constants.WRAPPER) QueryWrapper<ProjectDto> wrapper);

	AllCountDto projectCount(String creater);

	List<ProjectRateCountDto> projectRateCount(String creater);


	void updateIsAvailableById(@Param("id") Long id);

	List<ProjectModelDto> searchModelByUserId(@Param("userId")String userId);

}
